'use strcit';

function* foo(x){
	var a=0,b=1,t=1;
	while(t<x){
		t++;
		yield a;
		b = a+b;
		a = b-a;
	}
	return;
}

var f = foo(10);
console.log(f.next());

for(let i =0;i<=10;i++){
	console.log(f.next());
}
